package com.gams.springboot.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Table;
import java.util.Date;

/**
 * @author tql
 * @current springboot
 * @create 2021-09-3-9:51
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name="sys_role")
public class Role {
    private long id;
    private String name;
    private int status;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;
}
